import smart_cutter
from django.conf.urls import include, url
from smart_cutter.views import *
urlpatterns = [
    #  智能磨削系統
    url(r'^get_machine', get_machine, name="獲取幾台信息"),
    url(r'^size_alert', size_alert, name="尺寸超差報警"),
    url(r'^loading_and_shock', loading_and_shock, name="幾台負載和震動"),
    url(r'^get_worn', get_worn, name="砂輪磨損"),
    url(r'^next_time', next_time, name="下一支刀補正時間"),
    url(r'^get_d_code', get_d_code, name="尺寸代碼"),
    url(r'^get_pressure', get_pressure, name="油壓"),
    url(r'^get_load_shock', get_load_shock, name="測試震動負載"),
    url(r'^get_post_machine', get_post_machine, name="測試震動負載"),
    url(r'^loading_all', loading_all, name="測試震動負載1"),
    url(r'^translate_file/(?P<pk>[0-9]+)$',translate_file,name="文件傳輸智能補償"),

    url(r'get_m_type',get_m_type, name="所有機型"),
    url(r'get_t_type',get_t_type, name="所有刀具類型"),
    url(r'get_amachine_type',get_amachine_type, name="時間段內所有類型"),
    url(r'get_bmachine_type',get_bmachine_type, name="時間段內所有類型"),

    #  砂輪專家系統
    url(r'^brand_percent',brand_percent,name="品牌佔比"),
    url(r'^percent$',percent,name="品牌佔比"),
    url(r'^data_percent',data_percent,name="品牌佔比"),
    url(r'^tool_quantity',tool_quantity,name="按刀具類型統計品牌數量"),
    url(r'^brand_tool_quantity',brand_tool_quantity,name="各品牌砂輪加工刀具數量"),
    url(r'^repair_frequency',repair_frequency,name="補償頻率"),
    url(r'detail_compensation_num', detail_compensation_num, name="各品牌砂輪加工刀具细部补偿频率"),
    url(r'granularity_compensation', granularity_compensation, name="各品牌砂輪不同粒度加工刀具细部补偿频率"),
    url(r'^granularity_percent',granularity_percent,name="不同粒度補償頻率"),
    url(r'^code_brand_wear',code_brand_wear,name="尺寸代碼下個品牌的磨損值"),

    #智能調機
    url(r'^smart_adjust', smart_adjust, name="台灣那邊智能調機"),

]
